import request from "@/utils/request";
import qs from "qs";

export const tplDetail = (params: any) =>
  request({
    url: "/tpl/tpl-detail",
    method: "get",
    params,
  });
  export const tplDetail2 = (params: any) =>
  request({
    url: "/tpl/tpl-detail2",
    method: "get",
    params,
  });


export const saveTpl = (params: any) =>
  request({
    url: "/tpl/save-tpl",
    method: "post",
    data: qs.stringify(params),
  });

  export const saveTplDetail = (params: any) =>
  request({
    url: "/tpl/save-tpl-detail",
    method: "post",
    data: qs.stringify(params),
  });
//save-tpl-detail
export const drgNames = (params: any) =>
  request({
    url: "/tpl/drg-names",
    params,
  });

export const drgInfo = (params: any) =>
  request({
    url: "/tpl/drg-info",
    params,
  });

  export const drgInfo2 = (params: any) =>
  request({
    url: "/tpl/drg-info2",
    params,
  });


export const cnHops = (params: any) =>
  request({
    url: "/tpl/cn-hops",
    params,
  });

export const saveTplDrg = (params: any) =>
  request({
    url: "/tpl/save-tpl-drg",
    method: "post",
    data: params,
  });
export const drgweightbyid = (params: any) =>
  request({
    url: "/tpl/drg-weight-byid",
    method: "get",
    params: params,
  });
export const searchListInKey = (params: any) =>
  request({
    url: "/api/auto-zlxm",
    method: "get",
    params: params,
  });
export const searchListInVal = (params: any) =>
  request({
    url: "/api/auto-sfxm",
    method: "get",
    params: params,
  });
///api/auto-zlxm，/api/auto-sfxm     传key   另外一个传zlxmid
